package com.evl.ticketRemainder.vo;

import com.evl.common.persistence.model.TrainSeatSchedule;

public class TrainSeatScheduleVo extends TrainSeatSchedule{

	/**
	 * 
	 */
	private static final long serialVersionUID = -7027666035916236025L;
	/**
	 * 座位状态
	 */
	private int seatStatus;
	private String seatStatusName;
	private String seatTypeName;
	/**
     * 占位标识
     */
	private String identification;
	
	public int getSeatStatus() {
		return seatStatus;
	}
	public void setSeatStatus(int seatStatus) {
		this.seatStatus = seatStatus;
	}
	public String getSeatStatusName() {
		return seatStatusName;
	}
	public void setSeatStatusName(String seatStatusName) {
		this.seatStatusName = seatStatusName;
	}
	public String getSeatTypeName() {
		return seatTypeName;
	}
	public void setSeatTypeName(String seatTypeName) {
		this.seatTypeName = seatTypeName;
	}
	
	public String getIdentification() {
		return identification;
	}
	public void setIdentification(String identification) {
		this.identification = identification;
	}
	public TrainSeatScheduleVo(Integer id,String seatType, String seatNo) {  
		this.id = id;  
		this.seatType = seatType;  
		this.seatNo = seatNo;
	} 
	@Override  
	public boolean equals(Object obj) {  
		if(obj != null){
			TrainSeatScheduleVo s=(TrainSeatScheduleVo)obj;   
			return this.id.equals(s.id) && seatType.equals(s.seatType) && seatNo.equals(s.getSeatNo());   
		}else{
			return false;
		}
	}  
	@Override  
	public int hashCode() {  
		String in = id + seatType + seatNo;  
		return in.hashCode();  
	}  
}
